package com.bifrost.entity;

import javax.persistence.*;

/**
 * @author rangf
 * @date 2018/2/27
 */
@Entity
@Table(name = "SAP_PROTOCOL_PRODUCT",indexes = {
        @Index(name = "MATNR_WERKS_ZZGHN_INDEX",columnList = "MATNR,WERKS,ZZGHN",unique = true)})
public class SapProtocolProduct {
    private String zzghn;
    private String name1;
    private String werks;
    private String kostl;
    private String zzgnz;
    private String lifnr;
    private String aedat;
    private String matnr;
    private String delbs;
    private String datbi;
    private String datab;
    private String dstatus;
    private String ddate;
    private Long id;

    @Basic
    @Column(name = "ZZGHN", nullable = true, length = 10)
    public String getZzghn() {
        return zzghn;
    }

    public void setZzghn(String zzghn) {
        this.zzghn = zzghn;
    }

    @Basic
    @Column(name = "NAME1", nullable = true, length = 120)
    public String getName1() {
        return name1;
    }

    public void setName1(String name1) {
        this.name1 = name1;
    }

    @Basic
    @Column(name = "WERKS", nullable = true, length = 4)
    public String getWerks() {
        return werks;
    }

    public void setWerks(String werks) {
        this.werks = werks;
    }

    @Basic
    @Column(name = "KOSTL", nullable = true, length = 10)
    public String getKostl() {
        return kostl;
    }

    public void setKostl(String kostl) {
        this.kostl = kostl;
    }

    @Basic
    @Column(name = "ZZGNZ", nullable = true, length = 10)
    public String getZzgnz() {
        return zzgnz;
    }

    public void setZzgnz(String zzgnz) {
        this.zzgnz = zzgnz;
    }

    @Basic
    @Column(name = "LIFNR", nullable = true, length = 10)
    public String getLifnr() {
        return lifnr;
    }

    public void setLifnr(String lifnr) {
        this.lifnr = lifnr;
    }

    @Basic
    @Column(name = "AEDAT", nullable = true, length = 8)
    public String getAedat() {
        return aedat;
    }

    public void setAedat(String aedat) {
        this.aedat = aedat;
    }

    @Basic
    @Column(name = "MATNR", nullable = true, length = 18)
    public String getMatnr() {
        return matnr;
    }

    public void setMatnr(String matnr) {
        this.matnr = matnr;
    }

    @Basic
    @Column(name = "DELBS", nullable = true, length = 1)
    public String getDelbs() {
        return delbs;
    }

    public void setDelbs(String delbs) {
        this.delbs = delbs;
    }

    @Basic
    @Column(name = "DATBI", nullable = true, length = 8)
    public String getDatbi() {
        return datbi;
    }

    public void setDatbi(String datbi) {
        this.datbi = datbi;
    }

    @Basic
    @Column(name = "DATAB", nullable = true, length = 8)
    public String getDatab() {
        return datab;
    }

    public void setDatab(String datab) {
        this.datab = datab;
    }

    @Basic
    @Column(name = "DSTATUS", nullable = true, length = 1)
    public String getDstatus() {
        return dstatus;
    }

    public void setDstatus(String dstatus) {
        this.dstatus = dstatus;
    }

    @Basic
    @Column(name = "DDATE", nullable = true, length = 14)
    public String getDdate() {
        return ddate;
    }

    public void setDdate(String ddate) {
        this.ddate = ddate;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "ID", nullable = false)
    public Long getId() {
        return id;
    }

    public void setId(Long noid) {
        this.id = noid;
    }

}
